Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Admin Pack Feature to Improve Dashboard Functionality #47

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

rohitdhakane6
Copy link
Contributor

This PR introduces a new admin/pack module that enhances the administrative functionality within the dashboard. The key features include:

  • New admin/pack folder: This directory now contains all logic and UI components related to the admin pack functionality.

    • admin/pack/page.tsx: Shows all Pack in Db
    • admin/pack/[packId]/page.tsx: Edit particular pack.
  • Backend Middleware:

  • Features added:

    • Ability for admins to manage certain packs directly from the dashboard.
    • Included UI elements for viewing, editing, and deleting packs.
    • Integration with the existing admin dashboard routes and navigation.
  • Known Issues:

    • The adminMiddleware needs further testing to validate its functionality.
    • No other known issues at the moment, but further enhancements for filtering and search within the pack list are planned in future iterations.

Screenshots:

all Pack

Screenshot from 2025-02-28 22-43-04

delete warning

Screenshot from 2025-02-28 22-43-13

add new pack

Screenshot from 2025-02-28 22-43-22

edit pack

Screenshot from 2025-02-28 22-44-50

How to Test:

  1. Navigate to the admin/packs dashboard.
  2. Test pack management by adding, editing, or deleting packs.
  3. Ensure the middleware correctly restricts access to admin-only routes (pending additional tests).

@rohitdhakane6
Copy link
Contributor Author

If any changes or improvements are needed please feel free to leave comments on the PR, and I’ll address them
@hkirat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant